package com.dgut.coal.service.impl;

import com.dgut.coal.dao.AuditDao;
import com.dgut.coal.entity.Audit;
import com.dgut.coal.service.AuditService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 15:20 2019/10/6
 * @Modifued BY:
 */

@Service
public class AuditServiceImpl implements AuditService {

    @Autowired
    AuditDao auditDao;

    @Override
    public int pass(Integer apply_id, String operator, String audit_content, String audit_date) {
        return auditDao.pass(apply_id,operator,audit_content,audit_date);
    }

    @Override
    public int reject(Integer apply_id, String operator, String audit_content, String audit_date) {
        return auditDao.reject(apply_id,operator,audit_content,audit_date);
    }

    @Override
    public List<Audit> auditList(Integer apply_id) {
        return auditDao.auditList(apply_id);
    }
}
